.coolfieldset {

  legend {
    padding      : 0 5px;
    margin-left  : 10px;
    width        : auto;
    line-height  : 1;
    margin-bottom: 0;
    font-weight  : bold;
    cursor       : pointer;
    border       : none;
  }

  &.border-top {
    border-top: 1px solid #d9d9d9;
  }

  &.border-bottom {
    border-bottom: 1px solid #d9d9d9;
  }

  &.border-left {
    border-left: 1px solid #d9d9d9;
  }

  &.border-right {
    border-right: 1px solid #d9d9d9;
  }

  &.collapsed {
    border: 0;

    &.border-top {
      border-top: 1px solid #d9d9d9;
    }
  }

  &.is-click legend {
    padding-left: 15px;
    background  : transparent url() no-repeat center left;
  }

  &.collapsed.is-click legend {
    background: transparent url() no-repeat center left;
  }
}